package com.j180.spring_jwt_demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.j180.spring_jwt_demo.bean.UserBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface IUserDao extends BaseMapper<UserBean> {

    @Select("SELECT uid AS id,uname AS userName,pwd as pwd FROM t_user WHERE uname = #{username} AND pwd = md5(#{pwd})")
    public UserBean getUserByUserNameAndPwd(@Param("username") String username, @Param("pwd") String pwd);

}
